export default {
  gridRowActiveMode: 2,
  xdataControlName: 'grid',
  loadDefault: true,
  deviewCodeName: 'all_report_grid_view',
  deviewId: '850a52772881144dad324f9688ba0cfb',
  accUserMode: 2,
  capLanguageRes: {
    lanResTag: 'DE.LNAME.REPORT',
  },
  caption: '全部报表',
  codeName: 'report_all_report_grid_view',
  appDataEntityId: 'web.report',
  appViewEngines: [
    {
      engineCat: 'VIEW',
      engineType: 'GridView',
      id: 'engine',
    },
  ],
  appViewLogics: [
    {
      logicTrigger: 'CUSTOM',
      logicType: 'APPUILOGIC',
      builtinAppUILogic: {
        actionAfterWizard: 'DEFAULT',
        newDataAppView: {
          refAppViewId: 'web.report_edit_view',
        },
        appUILogicRefViews: [
          {
            refAppViewId: 'web.report_edit_view',
          },
        ],
        builtinLogic: true,
        logicType: 'PREDEFINED',
        viewLogicType: 'APP_NEWDATA',
        id: '新建数据',
      },
      builtinLogic: true,
      id: 'newdata',
    },
    {
      logicTrigger: 'CUSTOM',
      logicType: 'APPUILOGIC',
      builtinAppUILogic: {
        openDataAppView: {
          refAppViewId: 'web.report_bi_report_content_panel_view',
        },
        editMode: true,
        appUILogicRefViews: [
          {
            refAppViewId: 'web.report_bi_report_content_panel_view',
          },
        ],
        builtinLogic: true,
        logicType: 'PREDEFINED',
        viewLogicType: 'APP_OPENDATA',
        id: '打开数据',
      },
      builtinLogic: true,
      id: 'opendata',
    },
  ],
  appViewNavContexts: [
    {
      key: 'GROUP',
      value: 'n_group_eq',
      name: 'GROUP',
      id: 'group',
    },
  ],
  appViewRefs: [
    {
      realTitle: 'BI报表呈现态面板视图',
      refAppViewId: 'web.report_bi_report_content_panel_view',
      name: 'OPENDATA',
      id: 'opendata',
    },
    {
      realTitle: '分析报表编辑视图',
      refAppViewId: 'web.report_edit_view',
      name: 'NEWDATA',
      id: 'newdata',
    },
    {
      realTitle: 'BI报表呈现态面板视图',
      refAppViewId: 'web.report_bi_report_content_panel_view',
      name: 'EDITDATA',
      id: 'editdata',
    },
  ],
  controls: [
    {
      detoolbarItems: [
        {
          actionLevel: 100,
          groupExtractMode: 'ITEMS',
          uiactionGroup: {
            uiactionGroupDetails: [
              {
                actionLevel: 100,
                afterItemType: 'NONE',
                beforeItemType: 'NONE',
                buttonStyle: 'DEFAULT',
                caption: '新建报表',
                detailType: 'DEUIACTION',
                uiactionId: 'create_report@report',
                showCaption: true,
                showIcon: true,
                sysImage: {
                  cssClass: 'fa fa-plus',
                  glyph: 'xf067@FontAwesome',
                },
                id: 'u25e936f',
              },
            ],
            appDataEntityId: 'web.report',
            uniqueTag: 'report__Usr0710258619',
            name: '新建行为组',
            id: 'usr0710258619',
          },
          valid: true,
          caption: '添加',
          itemType: 'ITEMS',
          controlLogics: [
            {
              itemName: 'items1',
              logicTag: 'toolbar',
              logicType: 'SCRIPT',
              scriptCode: 'context.srfreadonly != true',
              triggerType: 'ITEMVISIBLE',
              id: 'items1',
            },
          ],
          sysImage: {
            cssClass: 'fa fa-plus',
            glyph: 'xf067@FontAwesome',
          },
          tooltip: '添加',
          showCaption: true,
          showIcon: true,
          id: 'items1',
        },
      ],
      xdataControlName: 'grid',
      codeName: 'all_report_grid_view_toolbar',
      controlType: 'TOOLBAR',
      logicName: '全部报表表格视图_工具栏',
      appDataEntityId: 'web.report',
      controlParam: {
        id: 'toolbar',
      },
      modelId: '77606a048a7ab8a2cfe93bd1745390ef',
      modelType: 'PSDETOOLBAR',
      name: 'toolbar',
      id: 'all_report_grid_view_toolbar',
    },
    {
      aggMode: 'NONE',
      columnEnableFilter: 2,
      columnEnableLink: 2,
      groupMode: 'NONE',
      groupStyle: 'DEFAULT',
      degridColumns: [
        {
          clconvertMode: 'NONE',
          dataItemName: 'name',
          excelCaption: '报表名称',
          appDEFieldId: 'name',
          deuiactionGroup: {
            uiactionGroupDetails: [
              {
                actionLevel: 100,
                afterItemType: 'NONE',
                beforeItemType: 'NONE',
                buttonStyle: 'DEFAULT',
                caption: '设计',
                detailType: 'DEUIACTION',
                uiactionId: 'open_report_design_view@report',
                showCaption: true,
                showIcon: true,
                sysImage: {
                  cssClass: 'fa fa-wrench',
                  glyph: 'xf0ad@FontAwesome',
                },
                id: 'u965d2aa',
              },
              {
                actionLevel: 100,
                afterItemType: 'NONE',
                beforeItemType: 'NONE',
                buttonStyle: 'DEFAULT',
                caption: '删除',
                detailType: 'DEUIACTION',
                uiactionId: 'delete_report@report',
                showCaption: true,
                showIcon: true,
                sysImage: {
                  cssClass: 'fa fa-remove',
                  glyph: 'xf00d@FontAwesome',
                },
                id: 'ua8ba9ff',
              },
            ],
            appDataEntityId: 'web.report',
            uniqueTag: 'report__Usr0520490033',
            name: '主表格操作列',
            id: 'usr0520490033',
          },
          valueType: 'SIMPLE',
          aggMode: 'NONE',
          align: 'LEFT',
          capLanguageRes: {
            lanResTag: 'DEF.LNAME.REPORT.NAME',
          },
          caption: '报表名称',
          codeName: 'name',
          columnType: 'DEFGRIDCOLUMN',
          noPrivDisplayMode: 1,
          controlRenders: [
            {
              layoutPanel: {
                layoutMode: 'Flex',
                layout: {
                  layout: 'FLEX',
                },
                rootPanelItems: [
                  {
                    actionGroupExtractMode: 'ITEM',
                    panelItems: [
                      {
                        editor: {
                          halign: 'LEFT',
                          renderMode: 'TEXT_DYNAMIC',
                          valign: 'MIDDLE',
                          wrapMode: 'NOWRAP',
                          appCodeListId: 'web.mock__bi_chart_type2',
                          editorType: 'SPAN',
                          predefinedType: 'FIELD_TEXT_DYNAMIC',
                          valueType: 'SIMPLE',
                          editable: true,
                          id: 'chart_type',
                        },
                        viewFieldName: 'chart_type',
                        allowEmpty: true,
                        convertToCodeItemText: true,
                        caption: '文本(动态)',
                        cssStyle: '--ibiz-form-item-font-size: 0;',
                        itemStyle: 'DEFAULT',
                        itemType: 'FIELD',
                        layoutPos: {
                          shrink: 1,
                          layout: 'FLEX',
                        },
                        id: 'chart_type',
                      },
                      {
                        editor: {
                          halign: 'LEFT',
                          renderMode: 'TEXT_DYNAMIC',
                          valign: 'MIDDLE',
                          wrapMode: 'NOWRAP',
                          editorType: 'SPAN',
                          predefinedType: 'FIELD_TEXT_DYNAMIC',
                          valueType: 'SIMPLE',
                          editable: true,
                          id: 'name',
                        },
                        viewFieldName: 'name',
                        allowEmpty: true,
                        caption: '文本(动态)',
                        itemStyle: 'DEFAULT',
                        itemType: 'FIELD',
                        layoutPos: {
                          shrink: 1,
                          layout: 'FLEX',
                        },
                        id: 'name',
                      },
                    ],
                    layout: {
                      align: 'flex-start',
                      dir: 'row',
                      layout: 'FLEX',
                      valign: 'center',
                    },
                    dataRegionType: 'INHERIT',
                    caption: '容器',
                    itemStyle: 'DEFAULT',
                    itemType: 'CONTAINER',
                    layoutPos: {
                      shrink: 1,
                      layout: 'FLEX',
                    },
                    id: 'container',
                  },
                ],
                layoutPanel: true,
                codeName: 'usr0713866980',
                controlType: 'PANEL',
                logicName: 'bi报表表格列绘制器',
                appDataEntityId: 'web.report',
                controlParam: {},
                modelId: '36fdd93343f6c399e0a0f4dab1e82086',
                modelType: 'PSSYSVIEWPANEL',
                name: 'layout',
                id: 'web.report.usr0713866980',
              },
              renderType: 'LAYOUTPANEL',
              id: 'layout',
            },
          ],
          width: 200,
          widthUnit: 'STAR',
          enableSort: true,
          id: 'name',
        },
        {
          clconvertMode: 'FRONT',
          dataItemName: 'update_man',
          excelCaption: '更新人',
          appCodeListId: 'web.sysoperator',
          appDEFieldId: 'update_man',
          valueType: 'SIMPLE',
          aggMode: 'NONE',
          align: 'LEFT',
          capLanguageRes: {
            lanResTag: 'DEF.LNAME.UPDATE_MAN',
          },
          caption: '更新人',
          codeName: 'update_man',
          columnType: 'DEFGRIDCOLUMN',
          noPrivDisplayMode: 1,
          width: 200,
          widthUnit: 'PX',
          enableSort: true,
          id: 'update_man',
        },
        {
          clconvertMode: 'NONE',
          dataItemName: 'update_time',
          excelCaption: '更新时间',
          appDEFieldId: 'update_time',
          valueFormat: 'YYYY-MM-DD HH:mm:ss',
          valueType: 'SIMPLE',
          aggMode: 'NONE',
          align: 'LEFT',
          capLanguageRes: {
            lanResTag: 'DEF.LNAME.UPDATE_TIME',
          },
          caption: '更新时间',
          codeName: 'update_time',
          columnType: 'DEFGRIDCOLUMN',
          noPrivDisplayMode: 1,
          width: 200,
          widthUnit: 'PX',
          enableSort: true,
          id: 'update_time',
        },
        {
          clconvertMode: 'NONE',
          dataItemName: 'desc',
          excelCaption: '描述',
          appDEFieldId: 'desc',
          valueType: 'SIMPLE',
          aggMode: 'NONE',
          align: 'LEFT',
          caption: '描述',
          codeName: 'desc',
          columnType: 'DEFGRIDCOLUMN',
          hideMode: 1,
          noPrivDisplayMode: 1,
          width: 100,
          widthUnit: 'PX',
          hideDefault: true,
          id: 'desc',
        },
      ],
      degridDataItems: [
        {
          appDEFieldId: 'name',
          scriptCode:
            'const app = ibiz.hub.getApp(context.srfappid);\r\nconst dataItems = await app.codeList.get(\r\n\'web.mock__bi_chart_type2\',\r\ncontext,\r\nparams,\r\n);\r\nconst item =dataItems.find(x => x.value === data.chart_type);\r\nif (item && item.sysImage) {\r\n    return \'<div class="ibiz-code-list__item" style="height: 36px;line-height: 36px;"><div class="ibiz-icon" style="margin-top: -24px;padding-right: 8px;">\' + item.sysImage.rawContent + \'</div>\' + data.name + \'</div>\';\r\n}\r\nreturn data.name;',
          valueType: 'SIMPLE',
          customCode: true,
          dataType: 25,
          id: 'name',
        },
        {
          appDEFieldId: 'update_man',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'update_man',
        },
        {
          format: 'YYYY-MM-DD HH:mm:ss',
          appDEFieldId: 'update_time',
          valueType: 'SIMPLE',
          dataType: 5,
          id: 'update_time',
        },
        {
          appDEFieldId: 'desc',
          valueType: 'SIMPLE',
          dataType: 21,
          id: 'desc',
        },
        {
          appDEFieldId: 'chart_type',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'chart_type',
        },
        {
          appDEFieldId: 'group',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'group',
        },
        {
          appDEFieldId: 'is_system',
          valueType: 'SIMPLE',
          dataType: 9,
          id: 'is_system',
        },
        {
          appDEFieldId: 'id',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'srfkey',
        },
        {
          appDEFieldId: 'id',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'srfdataaccaction',
        },
        {
          appDEFieldId: 'name',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'srfmajortext',
        },
      ],
      degridEditItems: [
        {
          caption: '标识',
          codeName: 'srfkey',
          enableCond: 3,
          appDEFieldId: 'id',
          editor: {
            editorType: 'HIDDEN',
            valueType: 'SIMPLE',
            editable: true,
            id: 'srfkey',
          },
          allowEmpty: true,
          id: 'srfkey',
        },
      ],
      pagingMode: 1,
      pagingSize: 20,
      sortMode: 'REMOTE',
      enableCustomized: true,
      enablePagingBar: true,
      singleSelect: true,
      navViewPos: 'NONE',
      fetchControlAction: {
        appDEMethodId: 'fetch_default',
        appDataEntityId: 'web.report',
        id: 'fetch',
      },
      removeControlAction: {
        appDEMethodId: 'remove',
        appDataEntityId: 'web.report',
        id: 'remove',
      },
      autoLoad: true,
      enableItemPrivilege: true,
      showBusyIndicator: true,
      codeName: 'all_report_grid_view_grid',
      controlType: 'GRID',
      logicName: '全部报表表格视图_表格',
      appDataEntityId: 'web.report',
      controlParam: {
        id: 'grid',
      },
      modelId: 'b571c80a66dd6afa910182cabcfdcc53',
      modelType: 'PSDEGRID',
      name: 'grid',
      id: 'web.report.all_report_grid_view_grid',
    },
    {
      searchButtonStyle: 'DEFAULT',
      deformPages: [
        {
          layout: {
            columnCount: 24,
            layout: 'TABLE_24COL',
          },
          capLanguageRes: {
            lanResTag: 'CONTROL.DEFORM.REPORT.DEFAULT.FORMPAGE.FORMPAGE1',
          },
          caption: '常规条件',
          codeName: 'formpage1',
          detailStyle: 'DEFAULT',
          detailType: 'FORMPAGE',
          id: 'formpage1',
        },
      ],
      layout: {
        columnCount: 24,
        layout: 'TABLE_24COL',
      },
      tabHeaderPos: 'TOP',
      noTabHeader: true,
      autoLoad: true,
      showBusyIndicator: true,
      codeName: 'default',
      controlType: 'SEARCHFORM',
      logicName: '默认搜索表单',
      appDataEntityId: 'web.report',
      controlParam: {
        id: 'searchform',
      },
      modelId: '81e2c3588faab35684f77b1cd2160211',
      modelType: 'PSDEFORM_SEARCHFORM',
      name: 'searchform',
      id: 'web.report.default',
    },
    {
      groupMode: 'SINGLE',
      quickSearchMode: 1,
      enableQuickSearch: true,
      controlType: 'SEARCHBAR',
      appDataEntityId: 'web.report',
      controlParam: {
        id: 'searchbar',
      },
      id: 'searchbar',
    },
    {
      capLanguageRes: {
        lanResTag: 'DE.LNAME.REPORT',
      },
      caption: '全部报表',
      codeName: 'all_report_grid_view_captionbar',
      controlType: 'CAPTIONBAR',
      appDataEntityId: 'web.report',
      controlParam: {},
      name: 'captionbar',
      id: 'all_report_grid_view_captionbar',
    },
  ],
  viewLayoutPanel: {
    layoutBodyOnly: true,
    useDefaultLayout: true,
    layoutPanel: true,
    codeName: 'layoutpanel',
    controlStyle: 'APPDEGRIDVIEW',
    controlType: 'VIEWLAYOUTPANEL',
    appDataEntityId: 'web.report',
    controlParam: {},
    id: 'layoutpanel',
  },
  title: '全部报表表格',
  viewStyle: 'DEFAULT',
  viewType: 'DEGRIDVIEW',
  enableDP: true,
  showCaptionBar: true,
  modelId: 'e205f1c85bc9e499c6733119c31501d0',
  modelType: 'PSAPPDEVIEW',
  name: 'reportall_report_grid_view',
  id: 'web.report_all_report_grid_view',
};
